package linestrategy

import (
	"codejy/analysis/lineanalysis"
	"codejy/globalfunc"
	"codejy/structdef"
)

// 实例地址行为调用策略  @#@xxx@#@.a()
type InstanceAddressMethodStrategy struct {
}

// 注册策略
func init() {
	RegisterStrategy(&InstanceAddressMethodStrategy{})
}

// 判断
func (f *InstanceAddressMethodStrategy) getId() int {
	return lineanalysis.InstanceAddressMethod
}

func (f *InstanceAddressMethodStrategy) Execute(threadStore *structdef.ThreadStore) {
	content := threadStore.Code.LineContent
	globalfunc.ExecuteFunc("AssignmentStrategyMode", threadStore, content)
}
